package com.example.anew.journey.mynewjourney.logic.PasswordFreeLogin.persenter;

import android.text.TextUtils;

import com.example.anew.journey.mynewjourney.logic.PasswordFreeLogin.view.ISPasswordFreeLoginView;

/**
 * 杭州惟君医疗科技有限公司11
 * Created by 20433 on 2018/3/23
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class PasswordFreeLoginPersenter {
    private ISPasswordFreeLoginView mISPasswordFreeLoginView ;
    public PasswordFreeLoginPersenter(ISPasswordFreeLoginView iSPasswordFreeLoginView) {
        this.mISPasswordFreeLoginView = iSPasswordFreeLoginView;
    }

    //点击获取验证码
    public void onClickGetVersion(){
        String phoneNumber = mISPasswordFreeLoginView.getPhonNumber();
        if(TextUtils.isEmpty(phoneNumber)){ mISPasswordFreeLoginView.showToastInformation("请输入手机号");return;}
        mISPasswordFreeLoginView.toGetVersionCode(phoneNumber);
    }

}
